

//获取数据
//整理数据
//放置数据








$.GWT = {};
$.GWT.UI = {};
$.GWT.UI.nav = {
    defaults: {
    },
    create: function (options) {
        var self = this;
        var settings = $.extend({}, self.defaults, options);
        var nav = new $.GWT.UI.nav.Constructor(settings);
        nav.init(settings);
        return nav;
    }
};


$.GWT.UI.nav.Constructor = function (options) {
    this.settings = options;
};

$.GWT.UI.nav.Constructor.prototype = {

    init: function(options) {
        var setting = $.extend({}, this.defaults, options);
        this.dropDown();
        // this.setData();
    },    
    dropDown:function () {
        //菜单下拉
        var lock = true;

        if(lock){
            $('.navBox .navKeyBox li').hover(function(){
                var that = $(this);
                that.toggleClass('active');
                that.find('.menuDiv').stop(true).slideToggle('2000');

                
                lock = false;
            });

            setTimeout(function(){
                    lock = true;
            },5000);
        }

        //设置下来的宽度
        var itemWidth = $('.systemCenter .item').innerWidth();
        $('.user-menu').width(itemWidth);

        //个人中心下拉
        $('.systemCenter .item').hover(function() {
           $(this).find('.user-menu').stop(true).slideToggle('2000');
        });
    },
    

};






















